package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhHolderMapper;
import com.laowang.project.system.domain.MyCyhHolder;
import com.laowang.project.system.service.MyCyhHolderService;

/**
 * 车友会股东配置Service业务层处理
 *
 * @author laowang
 * @date 2024-03-21
 */
@Service
public class MyCyhHolderServiceImpl implements MyCyhHolderService {
    @Autowired
    private MyCyhHolderMapper myCyhHolderMapper;

    /**
     * 查询车友会股东配置
     *
     * @param id 车友会股东配置ID
     * @return 车友会股东配置
     */
    @Override
    public MyCyhHolder selectMyCyhHolderById(Integer id) {
        return myCyhHolderMapper.selectMyCyhHolderById(id);
    }

    /**
     * 查询车友会股东配置列表
     *
     * @param myCyhHolder 车友会股东配置
     * @return 车友会股东配置
     */
    @Override
    public List<MyCyhHolder> selectMyCyhHolderList(MyCyhHolder myCyhHolder) {
        return myCyhHolderMapper.selectMyCyhHolderList(myCyhHolder);
    }

    /**
     * 新增车友会股东配置
     *
     * @param myCyhHolder 车友会股东配置
     * @return 结果
     */
    @Override
    public int insertMyCyhHolder(MyCyhHolder myCyhHolder) {
        return myCyhHolderMapper.insertMyCyhHolder(myCyhHolder);
    }

    /**
     * 修改车友会股东配置
     *
     * @param myCyhHolder 车友会股东配置
     * @return 结果
     */
    @Override
    public int updateMyCyhHolder(MyCyhHolder myCyhHolder) {
        return myCyhHolderMapper.updateMyCyhHolder(myCyhHolder);
    }

    /**
     * 批量删除车友会股东配置
     *
     * @param ids 需要删除的车友会股东配置ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhHolderByIds(Integer[] ids) {
        return myCyhHolderMapper.deleteMyCyhHolderByIds(ids);
    }

    /**
     * 删除车友会股东配置信息
     *
     * @param id 车友会股东配置ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhHolderById(Integer id) {
        return myCyhHolderMapper.deleteMyCyhHolderById(id);
    }
}
